<?php 

/**
 * 地址模型
 */


class AddressModel extends Model{
	
	 public $table = 'address';
    
    public $validate = array(
		array('name','nonull','姓名不能为空',2,3),
	);
	
	public function addDate(){
//		p($_POST);die;
		if(!$this->create()) return false;
		return $this->add();
		
		
	}
	
}















 ?>